package com.xth8013.helper;

import java.io.FileInputStream;

import javax.swing.JApplet;

import sun.audio.AudioPlayer;
import sun.audio.AudioStream;


public class MusicUtil extends JApplet {

    public static void play(String fileUrl) {
        try {
            FileInputStream fileau = new FileInputStream(fileUrl);
            AudioStream as = new AudioStream(fileau);
            AudioPlayer.player.start(as);
        } catch (Exception e) {
        }
    }

}